package com.wwf.springsession.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author wwf
 * @date 2020年12月31日 15:59:30
 */
@Controller
@RequestMapping("index")
public class IndexController {
    @RequestMapping("index")
    public String index(HttpServletRequest request){
        request.setAttribute("port",request.getLocalPort());
        request.setAttribute("sessionid",request.getSession().getId());
        return "index";
    }
}
